#ifndef ONLINE_H
#define ONLINE_H

#include <QString>
#include <QLabel>
#include <QPushButton>
#include <QTableView>
#include <QVector>
#include "constant.h"
#include "ui_online.h"
#include "links.h"

class Online: public QWidget
{
    Q_OBJECT
public:
    Online(Links *link, QWidget *parent = 0);
    ~Online();

private:
    Links *m_link;
    Ui_onlineForm *ui;
    qint32 m_state;
    QVector<UserInformation> userInfoVec;

    void tableViewRefresh();

private slots:
    void queryPushButtonClicked();
    void result(qint32 replyKind);
    void setState(qint32 state);
};

#endif